package com.ljh.mboxvidoserver.console.shoptype.dao;

import com.ljh.mboxvidoserver.console.shoptype.entity.ShopType;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface ShopTypeRepository extends JpaRepository<ShopType,Integer> {
    @Query(value = "select st from ShopType st where st.typeName like %?1%")
    Page<ShopType> findAllLikeTypeName(String typeName, Pageable pageable);
}
